<br/>
<fieldset id="add_task_by_<%=work_item.id%>" style="display:none" width="50%">
  <legend>添加新任务</legend>
  <%remote_form_for :task,:url=>{:controller=>'work_items',:action=>'create_task'},:html=>{:id=>"add_task_by_#{work_item.id}_form"} do |f|%>
    <div id="errors" class="new_html_block" style="display:none">
    </div>
    <br/>
    <%=hidden_field_tag 'work_item',work_item.id%>
    <%= f.label :name,'任务:' %><%= f.text_field :name %><%= f.submit '添加任务',:class=>'submit'%>
  <%end%>
</fieldset>